package com.ruoyi.lxy.mapper;

import com.ruoyi.lxy.domain.TDependant;
import com.ruoyi.lxy.domain.TUser;
import com.ruoyi.lxy.domain.bo.TDependantBo;
import com.ruoyi.lxy.domain.vo.TDependantVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 家属Mapper接口
 *
 * @author ruoyi
 * @date 2023-08-24
 */
public interface TDependantMapper extends BaseMapperPlus<TDependantMapper, TDependant, TDependantVo> {

    List<TDependant> selectDependantListByTimeId(Long timeId);

    @Select("select * from t_user where id=#{userId}")
    TUser selectUserByUserId(Long userId);

    List<TDependant> selectDependantListByTimeIdAndUserId(@Param("timeId") Long timeId, @Param("userId") Long userId);

    List<TDependant> selectDependantList(@Param("timeId") Long timeId, @Param("bo") TDependantBo bo);
}
